package cn.njxzc.Java2017;

public class Student {
	private String sname;
	private String sex;
	private int age;
	private int chinese;
	private int english;
	private int mathmatic;

	public Student() {

	}

	public Student(String sn, String sex, int age, int chi, int en, int ma) {
		sname = sn;
		sex = sex;
		age = age;
		chinese = chi;
		english = en;
		mathmatic = ma;
	}

	public String getSname() {
		return sname;
	}

	public void setSname(String sname) {
		this.sname = sname;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public int getChinese() {
		return chinese;
	}

	public void setChinese(int chinese) {
		this.chinese = chinese;
	}

	public int getEnglish() {
		return english;
	}

	public void setEnglish(int english) {
		this.english = english;
	}

	public int getMathmatic() {
		return mathmatic;
	}

	public void setMathmatic(int mathmatic) {
		this.mathmatic = mathmatic;
	}

	public String toString() {
		return "Student 的信息是：" + sname + ";" + sex + ";" + age + ";" + chinese
				+ ";" + english + ";" + mathmatic;
	}

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Student st = new Student("xiaoli", "男", 23, 80, 100, 100);
		System.out.println(st.toString());
	}

}
